package com.ssm.zhihu_ssm.entity;

import lombok.Data;

import javax.persistence.*;

@Data
public class UserMessage {
    private int id;
    private String sex;//性别
    private String  nickName;//昵称
    private String dwell;//居住地
    private String introduce;//简介
    private String  email;//邮箱
    private String answer;//回答数量
    private String article;//文章数量
    private String profession;//职业
    private String img;

    public UserMessage()
    {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public UserMessage(int id, String sex, String nickName, String dwell, String introduce, String email, String profession, String img
    ) {
        this.id = id;
        this.sex = sex;
        this.nickName = nickName;
        this.dwell = dwell;
        this.introduce = introduce;
        this.email = email;
        this.profession = profession;
        this.img = img;
    }

    public UserMessage(int id, String sex, String nickName, String dwell, String introduce, String email, String answer, String article, String profession,String img) {
        this.id = id;
        this.sex = sex;
        this.nickName = nickName;
        this.dwell = dwell;
        this.introduce = introduce;
        this.email = email;
        this.answer = answer;
        this.article = article;
        this.profession = profession;
        this.img = img;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getDwell() {
        return dwell;
    }

    public void setDwell(String dwell) {
        this.dwell = dwell;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getArticle() {
        return article;
    }

    public void setArticle(String article) {
        this.article = article;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }
}
